<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:1px;">
  <t:datagrid name="noticeList" title="企业公告" actionUrl="noticeController.do?datagrid" idField="id" fit="true" queryMode="group">
   <t:dgCol title="编号" field="id" hidden="false"></t:dgCol>
   <t:dgCol title="公告标题" field="noticeTitle" width="160"></t:dgCol>
   <t:dgCol title="日期" field="publishDate" formatter="yyyy-MM-dd" width="20" query="false"></t:dgCol>
   <t:dgCol title="发布人" field="publishBy"  hidden="false"></t:dgCol>
   <t:dgCol title="操作" field="opt" width="20"></t:dgCol>
   <t:dgDelOpt title="删除" url="noticeController.do?del&id={id}" />
   <t:dgToolBar title="录入" icon="icon-add" url="noticeController.do?addorupdate" funname="add"></t:dgToolBar>
   <t:dgToolBar title="编辑" icon="icon-edit" url="noticeController.do?addorupdate" funname="update"></t:dgToolBar>
   <t:dgToolBar title="查看" icon="icon-search" url="noticeController.do?addorupdate" funname="detail"></t:dgToolBar>
   <t:dgFunOpt  title="预览"  funname="preview(id)"></t:dgFunOpt>
  </t:datagrid>
        <script type="text/javascript">
			function preview(id) {
				var url = 'noticeController.do?detail&id=' + id;
				createdetailwindow('预览', url, '100%', '100%');
			}
		</script>
  </div>
 </div>